import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './assets/css/global.css'
import './element/index'
import 'element-ui/lib/theme-chalk/index.css';
import '../src/assets/iconfont/iconfont.css'
// import { prototype } from 'core-js/core/dict'
import request from './api/request' // 引入request封装的axios
import api from './api/api'

Vue.config.productionTip = false
Vue.prototype.$api = api

// 定义全局时间戳过滤器
Vue.filter('formatDate', function(value) {
  let time1 = value.substring(0, 10)
  let time2 = value.substring(10)
  time2 = time2.replace(/-/g,':')
  return time1.concat(time2)
})

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')